//
//  LZMusicCell.m
//  LZQQMusic
//
//  Created by apple on 16/4/21.
//  Copyright © 2016年 m14a.cn. All rights reserved.
//

#import "LZMusicCell.h"
#import "LZMusicModel.h"

@interface LZMusicCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconIMV;

@property (weak, nonatomic) IBOutlet UILabel *songNameLabel;

@property (weak, nonatomic) IBOutlet UILabel *singerNameLabel;


@end

@implementation LZMusicCell

- (void)setMusicM:(LZMusicModel *)musicM
{
    _musicM = musicM;
    
    UIImage *image = [UIImage imageNamed:musicM.singerIcon];
    self.iconIMV.image = [image circleImage];
    self.songNameLabel.text = musicM.name;
    self.singerNameLabel.text = musicM.singer;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    if (selected) {
        self.backgroundColor = [UIColor purpleColor];
    } else {
        self.backgroundColor = [UIColor clearColor];
    }
}

@end
